﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PB.Airsoft.Business.User;

namespace PB.Airsoft.Web.User.controls
{
    public partial class UserInfoControl : System.Web.UI.UserControl
    {
        public Guid UserId { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (UserId == Guid.Empty)
                return;

            var user = UserManager.GetUser(UserId);
            lblUserName.Text = user.Name;
        }
    }
}